package flexexamples.domain
{
	import flexunit.framework.TestCase;

	public class IterationTest extends TestCase
	{
		public function testNumberOfPoints() : void
		{
			var story1:UserStory = new UserStory();
			var story2:UserStory = new UserStory();
			story1.estimate = 2;
			story2.estimate = 3;
			
			var iteration:Iteration = new Iteration();
			iteration.addUserStory(story1);
			iteration.addUserStory(story2);
			
			assertEquals("Did not count 2+3 as 5", 5, iteration.getNumberOfPoints() );
		}
	}
}